<ui:composition
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>

	<h:panelGrid id="#{idPrefix}DirectiveEditPanel" columns="3" width="380px">

		<h:outputText value="#{studentBundle.directiveType}" styleClass="requiredField"/>
		<itdep:entitySelectMenu value="#{record.directiveType}" entityType="directive-type"
								format="{i18n.description}" required="true" id="#{idPrefix}DirectiveType"
								styleClass="sizeCopmonent"/>
		<itdep:errorMessage for="#{idPrefix}DirectiveType"/>

		<h:outputText value="#{studentBundle.numDirective}" styleClass="requiredField"/>
		<h:inputText value="#{record.directiveNumber}" required="true" id="#{idPrefix}DirectiveNumber"
					 styleClass="sizeCopmonent"
					 maxlength="100"/>
		<itdep:errorMessage for="#{idPrefix}DirectiveNumber"/>

		<h:outputText value="#{studentBundle.directiveDate}" styleClass="requiredField"/>
		<rich:calendar value="#{record.directiveDate}" id="#{idPrefix}DirectiveDate" required="true"
					   inputSize="14"/>
		<itdep:errorMessage for="#{idPrefix}DirectiveDate"/>

	</h:panelGrid>


</ui:composition>
